import request from '@/utils/request'


// 查询管控措施列表
export function listMeasure(query) {
    return request({
      url: '/risk/measure/list',
      method: 'get',
      params: query
    })
  }


// 新增管控措施列表
export function addMeasure(data) {
    return request({
      url: '/risk/measure',
      method: 'post',
      data: data
    })
  }
   // 删除管控措施
export function deleteMeasure(measureId) {
    return request({
      url: '/risk/measure/'+measureId,
      method: 'delete',      
    })
  } 
  // 修改管控措施类型
export function updateMeasure(data) {
    return request({
      url: '/risk/measure',
      method: 'put',
      data: data
    })
  }
  // 查询管控措施详细信息
export function getMeasureInfo(measureId) {
    return request({
      url: '/risk/measure/' + measureId,
      method: 'get'
    })
  } 

// 根据分类获取管控措施选择项
export function getMeasureOptions(classfyId) {
    return request({
      url: '/risk/measure/option/' + classfyId,
      method: 'get'
    })
  }  